package com.yanqu.road.entity.activity.zhenhuan.config;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

import java.sql.ResultSet;
import java.sql.SQLException;

@FieldTypeAnnotation(tableName = "t_s_activity_zhenhuan_text", desc = "甄嬛传第二阶段文本表")
public class ZhenHuanTextConfig extends DataObject {
    @FieldTypeAnnotation(select = true, isIndex = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "文本id", isIndex = true)
    private int id;
    @FieldTypeAnnotation(desc = "描述")
    private String desc;

    public ZhenHuanTextConfig(ResultSet rs) throws SQLException {
        this.activityId = rs.getInt("activityId");
        this.id = rs.getInt("id");
        this.desc = rs.getString("desc");
    }

    public int getActivityId() {
        return activityId;
    }

    public int getId() {
        return id;
    }

    public String getDesc() {
        return desc;
    }
}
